<script>
import DevLyl from "./com/dev-lyl.vue";
import DevInfo from "./com/dev-info.vue";
import DevGzfb from "./com/dev-gzfb.vue";
import DevGzpc from "@/pages/report/devInfo/com/dev-gzpc.vue";

export default {
  name: "dev-index",
  components: {DevGzpc, DevGzfb, DevInfo, DevLyl}
}
</script>

<template>
  <scroll-view scroll-y="true" style="height: 90vh;">
    <view class="dev-index-box">
      <text class="dev-index-title">设备综合看板</text>
    </view>

    <view class="dev-chart-box-l">
      <dev-info/>
    </view>

    <view class="dev-chart-box-l">
      <dev-lyl/>
    </view>

    <view class="dev-chart-box-s">
      <view class="dev-chart-box-sr">
        <dev-gzfb radius="60%" :showLabel="false"/>
      </view>
      <view class="dev-chart-box-sr">
        <dev-lyl/>
      </view>
    </view>

    <view class="dev-chart-box-l">
      <dev-gzfb/>
    </view>

    <view class="dev-chart-box-l">
      <dev-gzpc/>
    </view>


  </scroll-view>
</template>

<style scoped lang="scss">
.dev-index-box {
  text-align: center;
  font-weight: bold;
  margin: 15rpx;
  padding: 10rpx 0;
  background-color: #FEFEFE;
  border-radius: 10px;

  .dev-index-title {
    font-size: 60rpx;
    color: #000000;
  }
}

.dev-chart-box-l {
  margin: 15rpx;
  background-color: #FEFEFE;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 10rpx;
}

.dev-chart-box-s {
  margin: 15rpx 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 5rpx;

  .dev-chart-box-sr {
    width: 48%;
    margin: 5rpx 10rpx;
    background-color: #FEFEFE;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  }
}
</style>